#include<iostream>
#include<string>
using namespace std;

int main()
{
    string s;
    int z,oo,j,other;
    while(cin>>s)
    {
        int len=s.length();
        z=oo=j=other=0;
        int i,zflag,jflag;
        for(i=0;i<len;i++)
        {
            if(s[i]=='z')
            {
                z++;
                zflag=i;
            }
            else if(s[i]=='j')
            {
                j++;
                jflag=i;
            }
            else if(s[i]=='o') oo++;
            else other++;
        }
        if(other!=0 || z!=1 || j!=1)
        {
        cout<<"Wrong Answer"<<endl;
        continue;
        }
        int o[3];
        o[0]=zflag;
        o[1]=jflag-zflag-1;
        o[2]=oo-o[1]-o[0];
/*
        cout<<o[0]<<endl;
        cout<<o[1]<<endl;
        cout<<o[2]<<endl;
        cout<<oo-o[0]-o[1]<<endl;
*/
        if(o[1]==0 || o[2]!=o[0]*o[1])
        cout<<"Wrong Answer"<<endl;
        else cout<<"Accepted"<<endl;
    }
    return 0;
}
